package com.design.graduation.asdemo.manager;

import com.design.graduation.asdemo.network.HttpServiceFactory;
import com.design.graduation.asdemo.network.model.LoginResult;
import com.design.graduation.asdemo.network.service.LoginService;
import rx.Observer;

/**
 * Created by locfai on 2016/3/1.
 */
public class UserManager extends BaseManager {
    private static LoginService getLoginService() {
        return HttpServiceFactory.getService(LoginService.class);
    }

    public static void RxLogin(Long mobile, String securityCode, Observer<LoginResult> observer) {
        startRequest(getLoginService().RxLogin(mobile, securityCode), observer);
    }

    public static void RxRegister(Long mobile, String securityCode, Observer<LoginResult> observer) {
        startRequest(getLoginService().RxRegister(mobile, securityCode), observer);
    }


}
